Skip to content

jaq 3.1.0 - #287500

Merged
BrewTestBot merged 2 commits into
mainfrom
bump-jaq-3.1.0
Jun 11, 2026
Merged

jaq 3.1.0#287500
BrewTestBot merged 2 commits into
mainfrom
bump-jaq-3.1.0

Conversation

@BrewTestBot

Copy link
Copy Markdown
Contributor

Created by brew bump


Created with brew bump-formula-pr.

Details

release notes
This release adds support for jq's `input_filename` filter --- thanks to @a-n-d-r-e-w-l https://github.com/01mf02/jaq/pull/432!
Furthermore, at places where jaq accepted filters like `.a["b"]`, it now also accepts (equivalent) filters such as `.a.["b"]` (note the added dot after `.a`). https://github.com/01mf02/jaq/pull/423
Finally, this release corrects the indexing of arrays with an empty array, which previously panicked https://github.com/01mf02/jaq/pull/439. Thanks to @leeewee for spotting this!

API

The biggest change in this release is that calls to halt in jq filters can now be handled by users of the jaq API, instead of forcing a termination of the process. Thanks to @a-n-d-r-e-w-l 01mf02/jaq#433!
This has a few implications:

  • The signature of jaq_all::data::run had to be changed, resulting in a new major version of jaq-all.
  • To preserve semantic versioning stability guarantees, the jaq_core::unwrap_valr function still terminates the current process if halt is called, but only if the std feature is enabled --- otherwise, unwrap_valr panics! You need to take action to prevent panics if all of the following conditions hold:
    1. you use jaq_core::unwrap_valr,
    2. you have disabled the std feature in jaq_core, and
    3. you run filters that may call halt.

Furthermore, this version makes it possible to clone definitions, which can speed up compiling many different jq filters. 01mf02/jaq#430

Full Changelog: 01mf02/jaq@v3.0.0...v3.1.0

View the full release notes at https://github.com/01mf02/jaq/releases/tag/v3.1.0.


@github-actions github-actions Bot added rust Rust use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

馃 An automated task has requested bottles to be published to this PR.

Caution

Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch.

@github-actions github-actions Bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Jun 11, 2026
@BrewTestBot
BrewTestBot enabled auto-merge June 11, 2026 19:55
@BrewTestBot
BrewTestBot added this pull request to the merge queue Jun 11, 2026
Merged via the queue into main with commit 4288f88 Jun 11, 2026
22 checks passed
@BrewTestBot
BrewTestBot deleted the bump-jaq-3.1.0 branch June 11, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. rust Rust use is a significant feature of the PR or issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants